<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>列出1~10000的所有质数</title>
    <script>
        for(var x = 0;x<=100;x++){
            for(var y = 0; y <=100; y++){
                for(var z = 0; z <=100;z++){
                    if(3*x+2*y+z==200 && x + y + z ==100){
                        console.log("苹果"+x+"个，梨"+y+"个，桃子"+z+"个")
                    }
                }
            }
        }
        
    </script>
</head>
<body>
    
</body>
</html>